package cn.pro.CCY.jdbc;

import com.mysql.jdbc.Driver;

import java.sql.Connection;
import java.sql.DriverManager;

public class AppJdbc {
    public static void main(String[] args) throws Exception {
    // com.mysql.jdbc.Driver
    //加载类并得到类对象
    Class.forName("com.mysql.jdbc.Driver");

    String url = "jdbc:mysql://localhost:13306/test?useSSL=false";
    String user = "root";
    String password = "root";
      DriverManager.getConnection(url,user,password);
    }
}
